package com.banmoon.visitor.visitor;

import com.banmoon.visitor.element.Judge;
import com.banmoon.visitor.element.Spectator;

/**
 * 打分
 */
public class GradeOperation extends Operation {

    @Override
    public void operation(Judge judge) {
        System.out.println(judge.getName() + "正在打分");
    }

    @Override
    public void operation(Spectator spectator) {
        System.out.println(spectator.getName() + "正在打分");
    }
}
